home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_153_62 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  734 b   |  41 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.gameOver == 1)
  3.    {
  4.       removeMovieClip(this);
  5.       _visible = false;
  6.    }
  7.    if(_root.gameOn == 1)
  8.    {
  9.       _root.hitPlayer(this);
  10.       this._rotation += 2;
  11.       if(_X < - _width - 10)
  12.       {
  13.          removeMovieClip(this);
  14.       }
  15.       if(dir == 0)
  16.       {
  17.          if(_Y > 30)
  18.          {
  19.             _Y = _Y - upSpd;
  20.          }
  21.          if(_Y <= 30)
  22.          {
  23.             dir = 1;
  24.          }
  25.       }
  26.       if(dir == 1)
  27.       {
  28.          if(_Y < 370)
  29.          {
  30.             _Y = _Y + upSpd;
  31.          }
  32.          if(_Y >= 370)
  33.          {
  34.             dir = 0;
  35.          }
  36.       }
  37.       myColor.setBrightOffset(random(100));
  38.       _X = _X - 3;
  39.    }
  40. }
  41.